<?php if(!defined('IN_UCHOME')) exit('Access Denied'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<title>UCenter Home Control Panel</title>
<link id="mastercss" rel="stylesheet" href="admin/tpl/style.css" type="text/css" media="screen" />
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
</head>
<body>
<div id="wrap">
<div id="header">
<h2><a href="index.php" title="<?=$_SCONFIG['sitename']?>"><img src="admin/tpl/image/logo.gif" alt="<?=$_SCONFIG['sitename']?>" /></a></h2>

<div id="topmenu" class="gray">
欢迎您，<a href="space.php?uid=<?=$_SGLOBAL['supe_uid']?>"><?=$_SGLOBAL['username']?></a> | 
<a href="space.php">我的空间</a> | 
<a href="cp.php?ac=common&op=logout">退出</a>
</div>
<?php $_TPL['menunames'] = array(
		'config' => '站点设置',
		'privacy' => '隐私设置',
		'usergroup' => '用户组',
		'credit' => '积分规则',
		'profilefield' => '用户栏目',
		'profield' => '选吧栏目',
		'censor' => '词语屏蔽',
		'ad' => '广告设置',
		'tagtpl' => '多应用设置',
		'network' => '随便看看设置',
		'cache' => '缓存更新',
		'space' => '用户管理',
		'feed' => '事件',
		'share' => '分享',
		'blog' => '日志',
		'album' => '相册',
		'pic' => '图片',
		'comment' => '评论',
		'thread' => '话题',
		'post' => '回帖',
		'doing' => '迷你博客',
		'tag' => '标签',
		'mtag' => '选吧',
		'block' => '数据调用',
		'template' => '模板编辑',
		'backup' => '数据备份',
		'stat' => '统计更新',
		'cron' => '计划任务'
	); ?>
<ul id="menu">
<li<?=$menuactive['index']?>><a href="admincp.php">管理平台</a></li>
<?php if(is_array($cmenus)) { foreach($cmenus as $value) { ?>
<li<?=$menuactive[$value]?>><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } } ?>
</ul>
</div>
<div id="content">


<div class="mainarea">
<div class="maininner">

<?php if($list) { ?>
<form method="post" action="admincp.php?ac=usergroup">
<div class="bdrcontent">

<div class="topactions"><a href="admincp.php?ac=usergroup">浏览</a> | <a href="admincp.php?ac=usergroup&op=add">添加</a></div>

<div class="title">
<h3>普通用户组</h3>
<p>普通用户组的用户级别，随着其积分的变化而自动升级或者降级</p>
</div>

<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<th>组头衔</th>
<td>积分大于</td>
<td width="80">操作</td>
</tr>
<?php if(is_array($list['0'])) { foreach($list['0'] as $value) { ?>
<tr>
<th><?=$value['grouptitle']?></th>
<?php if($value['creditlower'] == -999999999) { ?>
<td><input type="text" size="15" value="<?=$value['creditlower']?>" name="creditlower[<?=$value['gid']?>]" readonly></td>
<?php } else { ?>
<td><input type="text" size="15" value="<?=$value['creditlower']?>" name="creditlower[<?=$value['gid']?>]"></td>
<?php } ?>
<td width="80">
<a href="admincp.php?ac=usergroup&op=edit&gid=<?=$value['gid']?>">编辑</a>
<a href="admincp.php?ac=usergroup&op=delete&gid=<?=$value['gid']?>">删除</a>
</td>
</tr>
<?php } } ?>
</table>
</div>
<div class="footactions">
<input type="submit" name="updatesubmit" value="提交更新" class="submit">
</div>
</form>

<div class="bdrcontent">
<br />
<div class="title">
<h3>特殊用户组</h3>
<p>归属于特殊用户组的用户级别身份，不受积分的影响，始终保持不变</p>
</div>

<table cellspacing="0" cellpadding="0" class="formtable">
<?php if(is_array($list['1'])) { foreach($list['1'] as $value) { ?>
<tr>
<th><?=$value['grouptitle']?></th>
<td width="80">
<a href="admincp.php?ac=usergroup&op=edit&gid=<?=$value['gid']?>">编辑</a> | 
<a href="admincp.php?ac=usergroup&op=delete&gid=<?=$value['gid']?>">删除</a>
</td>
</tr>
<?php } } ?>
</table>

<br />
<div class="title">
<h3>系统用户组</h3>
<p>系统内置，用户组不能被编辑或删除；用户级别身份，不受积分的变化的影响</p>
</div>

<table cellspacing="0" cellpadding="0" class="formtable">
<?php if(is_array($list['-1'])) { foreach($list['-1'] as $value) { ?>
<tr>
<th><?=$value['grouptitle']?></th>
<td width="80">
<a href="admincp.php?ac=usergroup&op=edit&gid=<?=$value['gid']?>">编辑</a>
</td>
</tr>
<?php } } ?>
</table>
</div>


<?php } ?>

<?php if($thevalue) { ?>
<script type="text/javascript">
function credisshow(value) {
if(value=='0') {
document.getElementById('tr_credit').style.display = '';
} else {
document.getElementById('tr_credit').style.display = 'none';
}
}
</script>

<form method="post" action="admincp.php?ac=usergroup&gid=<?=$thevalue['gid']?>">

<div class="bdrcontent">

<div class="topactions"><a href="admincp.php?ac=usergroup">浏览</a> | <a href="admincp.php?ac=usergroup&op=add">添加</a></div>

<div class="title">
<h3><?=$thevalue['grouptitle']?> 空间权限</h3>
<p>这里设置该用户组成员对自己的个人空间的操作权限许可</p>
</div>

<table cellspacing="0" cellpadding="0" class="formtable">
<tr><th style="width:12em;">名称</th><td><input type="text" name="set[grouptitle]" value="<?=$thevalue['grouptitle']?>"></td></tr>

<?php if(!isset($thevalue['system'])) { ?>
<tr>
<th>用户组类型</th>
<td>
<input type="radio" name="set[system]" value="0" onclick="credisshow(0)" checked> 普通用户组
<input type="radio" name="set[system]" value="1" onclick="credisshow(1)"> 特殊用户组 (不受积分限制)
</td>
</tr>
<?php } ?>
<?php if(empty($thevalue['system'])) { ?>
<tr id="tr_credit"><th>积分下限</th><td>
<?php if($thevalue['creditlower'] > -999999999) { ?>
<input type="text" name="set[creditlower]" value="<?=$thevalue['creditlower']?>" size="20">
<?php } else { ?>
<input type="hidden" name="set[creditlower]" value="<?=$thevalue['creditlower']?>" size="20">
<?=$thevalue['creditlower']?> (系统默认最低分，不能修改)
<?php } ?>
成为本用户组的最低积分</td></tr>
<?php } ?>
<tr><th>上传空间大小</th><td><input type="text" name="set[maxattachsize]" value="<?=$thevalue['maxattachsize']?>" size="10"> 单位:M, 0为无限</td></tr>
<tr><th>最多好友数</th><td><input type="text" name="set[maxfriendnum]" value="<?=$thevalue['maxfriendnum']?>" size="10"> 0为无限</td></tr>
<tr>
<th>两次发布操作间隔</th>
<td><input type="text" name="set[postinterval]" value="<?=$thevalue['postinterval']?>" size="10"> 单位:秒 , 0为不限制，包括日志/评论/留言/话题/回帖等发布操作</td>
</tr>
<tr>
<th>两次搜索操作间隔</th>
<td><input type="text" name="set[searchinterval]" value="<?=$thevalue['searchinterval']?>" size="10"> 单位:秒 , 0为不限制</td>
</tr>
<tr>
<th>二级域名最短长度</th>
<td><input type="text" name="set[domainlength]" value="<?=$thevalue['domainlength']?>" size="10"> 0为禁止使用二级域名，在站点开启二级域名时有效</td>
</tr>
<tr>
<th>发表迷你博客</th>
<td>
<input type="radio" name="set[allowdoing]" value="1"<?php if($thevalue['allowdoing']==1) { ?> checked<?php } ?>> 是
<input type="radio" name="set[allowdoing]" value="0"<?php if($thevalue['allowdoing']==0) { ?> checked<?php } ?>> 否
</td>
</tr>
<tr>
<th>发表日志</th>
<td>
<input type="radio" name="set[allowblog]" value="1"<?php if($thevalue['allowblog']==1) { ?> checked<?php } ?>> 是
<input type="radio" name="set[allowblog]" value="0"<?php if($thevalue['allowblog']==0) { ?> checked<?php } ?>> 否
</td>
</tr>
<tr>
<th>上传图片</th>
<td>
<input type="radio" name="set[allowupload]" value="1"<?php if($thevalue['allowupload']==1) { ?> checked<?php } ?>> 是
<input type="radio" name="set[allowupload]" value="0"<?php if($thevalue['allowupload']==0) { ?> checked<?php } ?>> 否
</td>
</tr>
<tr>
<th>发布分享</th>
<td>
<input type="radio" name="set[allowshare]" value="1"<?php if($thevalue['allowshare']==1) { ?> checked<?php } ?>> 是
<input type="radio" name="set[allowshare]" value="0"<?php if($thevalue['allowshare']==0) { ?> checked<?php } ?>> 否
</td>
</tr>
<tr>
<th>发表留言/评论</th>
<td>
<input type="radio" name="set[allowcomment]" value="1"<?php if($thevalue['allowcomment']==1) { ?> checked<?php } ?>> 是
<input type="radio" name="set[allowcomment]" value="0"<?php if($thevalue['allowcomment']==0) { ?> checked<?php } ?>> 否
</td>
</tr>
<tr>
<th>发表选吧话题</th>
<td>
<input type="radio" name="set[allowthread]" value="1"<?php if($thevalue['allowthread']==1) { ?> checked<?php } ?>> 是
<input type="radio" name="set[allowthread]" value="0"<?php if($thevalue['allowthread']==0) { ?> checked<?php } ?>> 否
</td>
</tr>
<tr>
<th>发表选吧回帖</th>
<td>
<input type="radio" name="set[allowpost]" value="1"<?php if($thevalue['allowpost']==1) { ?> checked<?php } ?>> 是
<input type="radio" name="set[allowpost]" value="0"<?php if($thevalue['allowpost']==0) { ?> checked<?php } ?>> 否
</td>
</tr>
<tr>
<th>日志全HTML标签支持</th>
<td>
<input type="radio" name="set[allowhtml]" value="1"<?php if($thevalue['allowhtml']==1) { ?> checked<?php } ?>> 是
<input type="radio" name="set[allowhtml]" value="0"<?php if($thevalue['allowhtml']==0) { ?> checked<?php } ?>> 否
&nbsp;谨慎允许，支持所有html标签可能会造成站点不安全因素
</td>
</tr>
<tr>
<th>忽略站点关闭和IP屏蔽</th>
<td>
<input type="radio" name="set[closeignore]" value="1"<?php if($thevalue['closeignore']==1) { ?> checked<?php } ?>> 是
<input type="radio" name="set[closeignore]" value="0"<?php if($thevalue['closeignore']==0) { ?> checked<?php } ?>> 否
</td>
</tr>
</table>

<?php if($thevalue['system']) { ?>
<br />
<div class="title">
<h3><?=$thevalue['grouptitle']?> 管理权限</h3>
<p>设置该用户组成员是否拥有站点管理权限，这可能会影响到站点数据安全，请谨慎选择</p>
</div>

<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<th style="width:12em;">标签</th>
<td>
<input type="radio" name="set[managetag]" value="1"<?php if($thevalue['managetag']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managetag]" value="0"<?php if($thevalue['managetag']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>选吧</th>
<td>
<input type="radio" name="set[managemtag]" value="1"<?php if($thevalue['managemtag']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managemtag]" value="0"<?php if($thevalue['managemtag']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>事件</th>
<td>
<input type="radio" name="set[managefeed]" value="1"<?php if($thevalue['managefeed']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managefeed]" value="0"<?php if($thevalue['managefeed']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>迷你博客</th>
<td>
<input type="radio" name="set[managedoing]" value="1"<?php if($thevalue['managedoing']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managedoing]" value="0"<?php if($thevalue['managedoing']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>分享</th>
<td>
<input type="radio" name="set[manageshare]" value="1"<?php if($thevalue['manageshare']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[manageshare]" value="0"<?php if($thevalue['manageshare']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>日志</th>
<td>
<input type="radio" name="set[manageblog]" value="1"<?php if($thevalue['manageblog']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[manageblog]" value="0"<?php if($thevalue['manageblog']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>相册</th>
<td>
<input type="radio" name="set[managealbum]" value="1"<?php if($thevalue['managealbum']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managealbum]" value="0"<?php if($thevalue['managealbum']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>评论</th>
<td>
<input type="radio" name="set[managecomment]" value="1"<?php if($thevalue['managecomment']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managecomment]" value="0"<?php if($thevalue['managecomment']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>话题</th>
<td>
<input type="radio" name="set[managethread]" value="1"<?php if($thevalue['managethread']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managethread]" value="0"<?php if($thevalue['managethread']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>站点设置</th>
<td>
<input type="radio" name="set[manageconfig]" value="1"<?php if($thevalue['manageconfig']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[manageconfig]" value="0"<?php if($thevalue['manageconfig']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>随便看看</th>
<td>
<input type="radio" name="set[managenetwork]" value="1"<?php if($thevalue['managenetwork']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managenetwork]" value="0"<?php if($thevalue['managenetwork']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>用户组</th>
<td>
<input type="radio" name="set[manageusergroup]" value="1"<?php if($thevalue['manageusergroup']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[manageusergroup]" value="0"<?php if($thevalue['manageusergroup']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>积分规则</th>
<td>
<input type="radio" name="set[managecredit]" value="1"<?php if($thevalue['managecredit']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managecredit]" value="0"<?php if($thevalue['managecredit']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>用户栏目</th>
<td>
<input type="radio" name="set[manageprofilefield]" value="1"<?php if($thevalue['manageprofilefield']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[manageprofilefield]" value="0"<?php if($thevalue['manageprofilefield']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>选吧栏目</th>
<td>
<input type="radio" name="set[manageprofield]" value="1"<?php if($thevalue['manageprofield']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[manageprofield]" value="0"<?php if($thevalue['manageprofield']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>词语屏蔽</th>
<td>
<input type="radio" name="set[managecensor]" value="1"<?php if($thevalue['managecensor']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managecensor]" value="0"<?php if($thevalue['managecensor']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>广告设置</th>
<td>
<input type="radio" name="set[managead]" value="1"<?php if($thevalue['managead']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managead]" value="0"<?php if($thevalue['managead']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>缓存更新</th>
<td>
<input type="radio" name="set[managecache]" value="1"<?php if($thevalue['managecache']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managecache]" value="0"<?php if($thevalue['managecache']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>标签模板</th>
<td>
<input type="radio" name="set[managetagtpl]" value="1"<?php if($thevalue['managetagtpl']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managetagtpl]" value="0"<?php if($thevalue['managetagtpl']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>数据调用</th>
<td>
<input type="radio" name="set[manageblock]" value="1"<?php if($thevalue['manageblock']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[manageblock]" value="0"<?php if($thevalue['manageblock']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>模板编辑</th>
<td>
<input type="radio" name="set[managetemplate]" value="1"<?php if($thevalue['managetemplate']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managetemplate]" value="0"<?php if($thevalue['managetemplate']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>数据备份</th>
<td>
<input type="radio" name="set[managebackup]" value="1"<?php if($thevalue['managebackup']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managebackup]" value="0"<?php if($thevalue['managebackup']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>统计更新</th>
<td>
<input type="radio" name="set[managestat]" value="1"<?php if($thevalue['managestat']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managestat]" value="0"<?php if($thevalue['managestat']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>计划任务</th>
<td>
<input type="radio" name="set[managecron]" value="1"<?php if($thevalue['managecron']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managecron]" value="0"<?php if($thevalue['managecron']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>
<tr>
<th>用户空间</th>
<td>
<input type="radio" name="set[managespace]" value="1"<?php if($thevalue['managespace']==1) { ?> checked<?php } ?>> 可管理
<input type="radio" name="set[managespace]" value="0"<?php if($thevalue['managespace']==0) { ?> checked<?php } ?>> 禁止
</td>
</tr>

</table>
<?php } ?>

</div>

<div class="footactions">
<input type="hidden" name="set[gid]" value="<?=$thevalue['gid']?>">
<input type="submit" name="thevaluesubmit" value="提交" class="submit">
</div>

</form>

<?php } ?>

</div>
</div>

<div class="side">
<?php if($menus['0']) { ?>
<div class="block style1">
<h2>常规设置</h2>
<ul class="folder">
<?php if(is_array($acs['0'])) { foreach($acs['0'] as $value) { ?>
<?php if($menus['0'][$value]) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } ?>
<?php } } ?>
</ul>
</div>
<?php } ?>

<div class="block style1">
<h2>批量管理</h2>
<ul class="folder">
<?php if(is_array($acs['3'])) { foreach($acs['3'] as $value) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } } ?>
<?php if(is_array($acs['1'])) { foreach($acs['1'] as $value) { ?>
<?php if($menus['1'][$value]) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } ?>
<?php } } ?>
</ul>
</div>

<?php if($menus['2']) { ?>
<div class="block style1">
<h2>高级应用</h2>
<ul class="folder">
<?php if(is_array($acs['2'])) { foreach($acs['2'] as $value) { ?>
<?php if($menus['2'][$value]) { ?>
<?php if($ac==$value) { ?><li class="active"><?php } else { ?><li><?php } ?><a href="admincp.php?ac=<?=$value?>"><?=$_TPL['menunames'][$value]?></a></li>
<?php } ?>
<?php } } ?>
<?php if($menus['0']['config']) { ?><li><a href="<?=UC_API?>" target="_blank">UCenter</a></li><?php } ?>
</ul>
</div>
<?php } ?>
</div>

</div>
<div id="footer">
<p>
Powered by <a  href="http://u.discuz.net" target="_blank" title="<?php echo X_RELEASE; ?>">UCenter Home</a> <?php echo X_VER; ?> 
<?php if(!empty($_SCONFIG['licensed'])) { ?><a  href="http://license.comsenz.com/?pid=7&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><?php } ?>, 
Copyright 2001-2008 <a  href="http://www.comsenz.com/" target="_blank">Comsenz Inc.</a>
</p>
<p><?php echo debuginfo(); ?></p>
</div>
</div>
</body>
</html>
<?php ob_out(); ?>
<?php subtplcheck('admin/tpl/usergroup|admin/tpl/header|admin/tpl/side|admin/tpl/footer', '1215596349', 'admin/tpl/usergroup'); ?>